package o;

public class cos {
    /* JADX WARNING: inconsistent code. */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static void ॱ(android.content.pm.PackageInstaller.SessionParams r5) {
        /*
        r0 = android.os.Build.VERSION.SDK_INT;
        r1 = 28;
        if (r0 > r1) goto L_0x0007;
    L_0x0006:
        return;
    L_0x0007:
        r0 = 0;
        r1 = android.content.pm.PackageInstaller.SessionParams.class;
        r2 = "installFlags";
        r0 = r1.getDeclaredField(r2);	 Catch:{ NoSuchFieldException -> 0x0032 }
        r1 = r0;
    L_0x0011:
        if (r1 == 0) goto L_0x0006;
    L_0x0013:
        r2 = r1.isAccessible();
        r0 = 1;
        r1.setAccessible(r0);	 Catch:{ IllegalAccessException -> 0x003e, Exception -> 0x004c }
        r0 = r1.get(r5);	 Catch:{ IllegalAccessException -> 0x003e, Exception -> 0x004c }
        r3 = r0 instanceof java.lang.Integer;	 Catch:{ IllegalAccessException -> 0x003e, Exception -> 0x004c }
        if (r3 == 0) goto L_0x002e;
    L_0x0023:
        r0 = (java.lang.Integer) r0;	 Catch:{ IllegalAccessException -> 0x003e, Exception -> 0x004c }
        r0 = r0.intValue();	 Catch:{ IllegalAccessException -> 0x003e, Exception -> 0x004c }
        r0 = r0 | 4096;
        r1.setInt(r5, r0);	 Catch:{ IllegalAccessException -> 0x003e, Exception -> 0x004c }
    L_0x002e:
        r1.setAccessible(r2);
        goto L_0x0006;
    L_0x0032:
        r1 = move-exception;
        r1 = o.cnu.ˏ;
        r2 = "PackageInstallerEx";
        r3 = "can not found installFlags field";
        r1.ˊ(r2, r3);
        r1 = r0;
        goto L_0x0011;
    L_0x003e:
        r0 = move-exception;
        r0 = o.cnu.ˏ;	 Catch:{ all -> 0x005a }
        r3 = "PackageInstallerEx";
        r4 = "can not access installFlags";
        r0.ˊ(r3, r4);	 Catch:{ all -> 0x005a }
        r1.setAccessible(r2);
        goto L_0x0006;
    L_0x004c:
        r0 = move-exception;
        r0 = o.cnu.ˏ;	 Catch:{ all -> 0x005a }
        r3 = "PackageInstallerEx";
        r4 = "can not set installFlags";
        r0.ˊ(r3, r4);	 Catch:{ all -> 0x005a }
        r1.setAccessible(r2);
        goto L_0x0006;
    L_0x005a:
        r0 = move-exception;
        r1.setAccessible(r2);
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: o.cos.ॱ(android.content.pm.PackageInstaller$SessionParams):void");
    }
}
